Refresh Method

The Refresh method enables and disables the refresh (drawing) of the graphics window. This method is useful if you are doing a large number of graphics updates and you do not want to see the intermediate steps.

Example

; Run this line of code first.

p = PLOT(/TEST)

 

; Disable re-draws.

p.Refresh, /DISABLE

 

; Change some properties, add another plot.

p.COLOR = "red"

p.FILL_BACKGROUND = 1

p.FILL_COLOR = "yellow"

p.TITLE = "My Data"

p1 = PLOT(FINDGEN(21)*10, RANDOMU(seed,21)-0.5, "g2o-", /OVERPLOT)

WAIT, 1

 

; Re-enable drawing and show the results.

p.Refresh

Syntax

graphic.Refresh [, /DISABLE]

Arguments

None.

Keywords

DISABLE

Set this keyword to 1 to disable all refreshing of the graphics window until the ::Refresh method is called again. If this keyword is not set (or is set to 0) then the graphics window is re-drawn and refresh is turned back on if it was previously turned off.

Version History

8.0

Introduced

See Also

Using IDL Graphics